﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucOrderDetail.ascx.cs"
    Inherits="Admin_ucControl_ucOrderDetail" %>

<script language="javascript" type="text/javascript">
    function UpdateParentsLogin() {
        tb_remove();
        window.parent.location = window.parent.location;
    }
</script>

<div style="text-align: left">
    <div class="btTitle" style="text-align: left;">
        Confirm Order</div>
    <table cellpadding="0" cellspacing="0" border="0">
        <tr>
            <td style="width: 70px">
            </td>
            <td>
                <table cellpadding="2" cellspacing="2" border="0">
                    <tr>
                        <td>
                            Email:
                            <asp:Label ID="lb_email" runat="server" Style="font-weight: bold; text-decoration: underline;"> </asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td>
                           Date Event:
                            <asp:Label ID="lb_OrderDate" runat="server"> </asp:Label>
                        </td>
                    </tr>
                   
                    <tr>
                        <td>
                            Name:
                            <asp:Label ID="lb_name" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Mobile Phone :
                            <asp:Label ID="lb_phone" runat="server"></asp:Label>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <div class="btTitle" style="text-align: left;">
       Order Detail</div>
    <asp:GridView ID="grdShoppingCart" runat="server" AutoGenerateColumns="False" CellPadding="10"
        CssClass="grd">
        <Columns>
            <%--  <asp:TemplateField HeaderText="Number">
                <ItemTemplate>
                    <%# Container.DataItemIndex + 1 %>
                </ItemTemplate>
                <ItemStyle HorizontalAlign="Left" Wrap="True" Font-Bold="true" Width="120px"></ItemStyle>
            </asp:TemplateField>--%>
            <asp:TemplateField HeaderText="Product">
                <ItemTemplate>
                    <asp:Image ID="imgProduct" runat="server" ImageUrl='<%# "~/ImageProcess.ashx?file=" + "~/Admin/img/ImageMenu/" + Eval("ImageURL") + "&width=90&heigh=90&dd=true" %>' />
                </ItemTemplate>
                <ItemStyle Height="100" HorizontalAlign="Center" VerticalAlign="Middle" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Menu Name">
                <ItemTemplate>
                    <%# Eval("MenuName")%></ItemTemplate>
                <ItemStyle HorizontalAlign="Left" Wrap="True" Font-Bold="true" Width="305px"></ItemStyle>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Price">
                <ItemTemplate>
                    <%# double.Parse(Eval("Price").ToString()).ToString("c")%>
                </ItemTemplate>
                <ItemStyle Width="60" VerticalAlign="Middle" HorizontalAlign="Center" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Quantity">
                <ItemTemplate>
                    <%# Eval("Quantity") %>
                </ItemTemplate>
                <ItemStyle HorizontalAlign="Center" Width="50px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Total Amount">
                <ItemTemplate>
                    <%# (double.Parse(Eval("Quantity").ToString()) * double.Parse(Eval("Price").ToString())).ToString("c")%>
                </ItemTemplate>
                <ItemStyle Width="90" VerticalAlign="Middle" HorizontalAlign="Right" />
            </asp:TemplateField>
        </Columns>
        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        <HeaderStyle CssClass="grdHeader" />
        <EditRowStyle BackColor="#2461BF" />
        <AlternatingRowStyle CssClass="grdAlternateRow" />
        <RowStyle CssClass="grdRow" />
    </asp:GridView>
    <asp:Panel ID="pnlCartFooter" runat="server" Height="150px">
        <table border="0" cellpadding="0" cellspacing="0" width="100%">
            <%--<tr>
                <td style="text-align: right;" align="right">
                    Estimated Delivery Fee :
                    <asp:Label ID="lblDeliveryFee" runat="server" Text="NA" Font-Bold="true"></asp:Label>
                </td>
            </tr>--%>
            <tr>
                <td style="text-align: right; padding: 10px 0 10px 0; background-image: none; background-repeat: repeat;
                    background-color: #006699;" valign="middle">
                    <span style="color: #FFFFFF">Total Amount: </span>
                    <asp:Label ID="lblTotal" runat="server" CssClass="clsTotalPriceCart" Style="color: #FFFFFF"></asp:Label>
                    <span style="color: #FFFFFF"></span>
                </td>
            </tr>
            <caption>
                <tr>
                    <td style="padding: 10px 0 10px 0; text-align: right;">
                        <asp:ImageButton ID="btnBack" runat="server" CausesValidation="true" ImageUrl="~/images/bt_back.png"
                            Text="Next" ToolTip="Back" />
                    </td>
                </tr>
                <tr>
                    <td style="text-align: center">
                        &nbsp;
                    </td>
                </tr>
            </caption>
        </table>
    </asp:Panel>
</div>
